<?php
namespace app\admin\validate;

use think\Validate;

class Admin extends Validate
{
    protected $rule = [
        'username'  =>  'require|max:25',
        'password' =>  'require',
    ];

    protected $message  =   [
        'username.require' => '用户名必须填写',
        'username.max'     => '用户名最多不能超过25个字符',            
        'password.require'        => '密码不能为空',    
    ];
}
